<%@ page contentType="text/html; charset=utf-8" language="java"
	import="java.sql.*" errorPage=""%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page isELIgnored="false"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<table class="fwin" cellspacing="0" cellpadding="0">
	<tbody>
		<tr>
			<td class="t_l"></td>
			<td class="t_c"></td>
			<td class="t_r"></td>
		</tr>
		<tr>
			<td class="m_l"></td>
			<td class="m_c">
				<div class="f_c">
					<div id="topic_tools" class="c">
						<h3>
							选中<strong id="mdct" class="xi1">0</strong> 篇：
						</h3>
						 <a id="magt_d"
							onclick="ReplyControl('删除','-1')" href="javascript:;">删除</a> <a></a>
					</div>
				</div>
			</td>
			<td class="m_r"></td>
		</tr>
		<tr>
			<td class="b_l"></td>
			<td class="b_c"></td>
			<td class="b_r"></td>
		</tr>
	</tbody>
</table>
<script type="text/javascript">
function ReplyControl(Cname,Cid){
	if(Cid=='-1'){
		 if(confirm("将执行 "+Cname+ "，并且无法恢复。您确定吗？")){
			 window.postDeleteReply(valueArray,Cname,Cid);
		 }
	}
}
jQuery(function($) {
	window.postDeleteReply=function (array,tyle,tId){
		$.ajax({
			type : "post",
			url : "setReplyManagerServlet",
			data : {"idArray":array,"tyle":tyle,"tId":tId},
			dateType : "json",
			success : function(data) {
				var jsondata = eval('(' + data + ')');
				if(jsondata.isSuccess=="true"){
					window.location.reload();
				}else{
					confirm("删除失败，请再次操作！！")
				}
			},
			error:function(data){
				
			}
		});
	}
});
</script>